using TMPro;
using UnityEngine;


public class PlayerController : MonoBehaviour
{
    [Header("生命值")]
    public float HP;
    [Header("攻击力")]
    public float AD;
    public TextMeshProUGUI HPText;
    public TextMeshProUGUI ADText;

    private void Update()
    {
        HPText.text = $"生命值：{HP}";
        ADText.text = $"攻击力：{AD}";
    }
}
